﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using UT3Bots.Communications;


namespace UT3Bots.UTItems
{
	public class UTItemPoint : UTPoint, INotifyPropertyChanged
	{

		private UTItem _item;
		private bool _isReadyToPickup;


		#region Properties
		public UTItem Item
		{
			get
			{
				return this._item;
			}
		}
		public bool IsReadyToPickup
		{
			get
			{
				return this._isReadyToPickup;
			}
			internal set
			{
				this._isReadyToPickup = value;
				OnPropertyChanged("IsReadyToPickup");
			}
		}
		#endregion



		//Constructor
		internal UTItemPoint(UTIdentifier Id, UTVector Location, string Type, bool isReachable, bool isReadyToPickup)
			: base(Id, Location, isReachable)
		{
			this._isReadyToPickup = isReadyToPickup;

			//Build the item from the ID
			this._item = new UTItem(Id.ToString(), Type);
		}


	}
}
